function a = sig(z)
    a = 1./(1+exp(-z));
end